package cn.yuanqiao.archive.wenjianzhengli.service;

import cn.yuanqiao.archive.appManager.domain.TenantCategory;
import cn.yuanqiao.archive.appManager.domain.TenantYqFolder;
import com.alibaba.fastjson2.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * @author zjj
 * @date 2023/6/25
 */
public interface ILixianjieshouService {
    /**
     * 添加项目
     * @param object
     * @return
     */
    int addItem(JSONObject object);

    /**
     * 添加卷
     * @param object
     * @return
     */
    TenantYqFolder addFolder(JSONObject object);

    /**
     * 添加件
     * @param object
     * @return
     */
    int addYqda(JSONObject object);

    /**
     * 修改项目
     * @param object
     * @return
     */
    int updateItem(JSONObject object);

    /**
     * 修改组卷
     * @param object
     */
    int updateFolder(JSONObject object);

    /**
     * 修改组件
     * @param object
     * @return
     */
    int updateYqda(JSONObject object);

    /**
     * 查询项目详情
     * @param object
     * @return
     */
    Map<String, Object> getItemById(JSONObject object);

    /**
     * 获取卷层
     * @param object
     * @return
     */
    Map<String, Object> getFolderById(JSONObject object);

    /**
     * 获取件层
     * @param object
     * @return
     */
    Map<String, Object> getYqdaById(JSONObject object);

    /**
     * 档案接收
     * @param categoryId
     * @param ids
     * @return
     */
    int jieshou(Long categoryId, Long[] ids);
    int jieshou2(Long categoryId, Long[] ids);

    /**
     * 组项目
     * @param object
     * @return
     */
    int mergeFolder(JSONObject object);


    int mergeYqda(JSONObject object);

    int assemblyFolder(JSONObject object);

    Boolean assemblyFolderVerify(JSONObject object);

    int splitFolder(JSONObject object);

    int splitItem(JSONObject object);

    int delItemFolderByFolderId(JSONObject object);

    void bindFolderIdDaId(JSONObject object);

    int tuihui(Long categoryId, Long[] ids);

    void submitButton(Long categoryId, List<String> idList);

    int updateBgqx(String bgqxVal, String ids, String type, Long categoryId);

    void relevanceMap(TenantCategory category, Integer type, Long id, String ids);

    String changeFileMj(Long daId, Long categoryId, Long docId, String mj);
}
